<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/findAll}" method="post">
    <input type="text" name="name" th:value="${name}">
    <input type="submit" value="搜索">
</form>
    <a href="/tiaoAdd">添加</a>
    <table border="1" cellspacing="0">
        <tr>
            <td>编号</td>
            <td>姓名</td>
            <td>性别</td>
            <td>年龄</td>
            <td>操作</td>
        </tr>
        <tr th:each="emp:${list}">
            <td th:text="${emp.id}"></td>
            <td th:text="${emp.name}"></td>
            <td th:text="${emp.sex}"></td>
            <td th:text="${emp.age}"></td>
            <td>
                <a th:href="@{/findByid(id=${emp.id})}">修改</a>
                <a th:href="@{/delete(id=${emp.id})}">删除</a>
            </td>
        </tr>
    </table>

</body>
</html>